package com.hefei.garden.pojo.response;

import lombok.Getter;

/**
 * @author: devil
 * @Date: 2022/7/21 20
 * @Description: 返回值枚举定义
 */
@Getter
public enum ResultCode implements StatusCode {
    /**
     * 返回值枚举
     */
    SUCCESS(200, "请求成功"),
    FAILED(500, "请求失败"),
    VALIDATE_ERROR(500, "参数错误"),

    ;
    private final int code;
    private final String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
